/*
 * @Description: file content
 * @Author: oooh
 * @Date: 2024-04-23 17:55:21
 * @LastEditors: oooh
 * @LastEditTime: 2024-05-15 14:15:47
 * @FilePath: \Civil_Servant_Performance_PC\src\api\work-approval\index.js
 */
import request from '@/utils/request'

// 待审批工作列表
export function approvalList(query) {
  return request({
    url: '/api/deptWorkPlans/audits',
    method: 'get',
    params: query
  })
}

// 工作审批
export function approval(data) {
  return request({
    url: '/api/deptWorkPlans/audits',
    method: 'patch',
    data: data
  })
}

// 审批日志
export function approvalLogs(query) {
  return request({
    url: '/api/auditLogs',
    method: 'get',
    params: query
  })
}

// 工作进度管理操作
export function progressManageMarking(data) {
  return request({
    url: '/api/deptWorkPlans/progressManageMarking',
    method: 'patch',
    data: data
  })
}
